#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

BUILDDIR = $(CURDIR)/debian/build

%:
	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR)

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_SKIP_RPATH=TRUE -DBUILD_EXAMPLES=OFF -DUSE_SVMLIGHT=OFF -DPythonStatic=ON -DPythonModular=ON

#override_dh_install:
#	$(MAKE) -C doc doc
#	$(RM) doc/html*/*.map
#	$(RM) doc/html*/*.md5
#	$(RM) doc/html*/installdox
#	$(RM) doc/html*/formula.repository
#	mkdir -p $(CURDIR)/debian/shogun-doc-en/usr/share/doc/shogun-doc-en
#	mkdir -p $(CURDIR)/debian/shogun-doc-cn/usr/share/doc/shogun-doc-cn
#	cp -r doc/html $(CURDIR)/debian/shogun-doc-en/usr/share/doc/shogun-doc-en
#	cp -r doc/html_cn $(CURDIR)/debian/shogun-doc-cn/usr/share/doc/shogun-doc-cn
#	dh_install

override_dh_strip:
	dh_strip --dbg-package=libshogun-dbg

binary-install/python-shogun::
	dh_python2
	dh_python3
	dh_numpy
	dh_numpy3
